#include<iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	while (n--)
	{
		int size = 0;
		cin >> size;
		
		int sum2 = 0;
		int* a = new int[size];
		int i = 0;
		for (i; i < size; i++)
		{
			cin >> a[i];
			if (a[i] == 2)
				sum2++;
		}
		if (size % 2 == 1)
		{
			if (sum2 % 2 == 1&&sum2!=size)
				cout << "YES" << endl;
			else
				cout << "NO" << endl;
		}
		else
		{
			if (sum2 % 2 == 1)
				cout << "NO" << endl;
			else
				cout << "YES" << endl;
		}
		
	}
}